home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1711 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.1 KB  |  39 lines

  1. Path: dsi.unimi.it!berola
  2. From: berola@dsi.unimi.it (simona berola)
  3. Newsgroups: comp.lang.c++
  4. Subject: exec under Windows ?
  5. Date: 12 Jan 1996 08:19:07 GMT
  6. Organization: Computer Science Dep. - Milan University
  7. Message-ID: <4d55hr$n9m@tic.sm.dsi.unimi.it>
  8. NNTP-Posting-Host: tac.fddi.dsi.unimi.it
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11.  
  12. Excuse me for my school English, but I'm desperate with Borland C++ 3.0.
  13. I need to know if there is a function or something else to execute a DOS 
  14. program during the execution of another program written in C++ for 
  15. Windows. 
  16. I know that "exec" and  "system" do this, but only for program write for  
  17. DOS and not for Windows.
  18. Example:
  19.  
  20.          DOS                               WINDOWS
  21.  
  22. main()
  23. {
  24.    exec("edit");   ------------------>   it's not possible ?
  25. }
  26. or
  27.  
  28. main()                                    I have no Compiling error
  29. {                                         but i have 1 linker error
  30.    system("edit"); ------------------>
  31. }
  32.  
  33. N.B:My "dos" program must only write on file, and not on screen
  34.  
  35.                                            Thanks for your help
  36.  
  37. e-mail: galvani@ghost.sm.dsi.unimi.it
  38.  
  39.